﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Directory.Web.AddItem" MasterPageFile="~/DefaultMasterPage.master" Theme="Default" Codebehind="AddItem.aspx.cs" %>
<asp:Content ContentPlaceHolderID="head" runat="server" >
	<title><% = Directory.Web.WebSettings.GetInstance().SiteName %> — 推荐条目</title>
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
	<table>
		<tr>
            <td><label><% = Resources.Resource.ResourceManager.GetString("ItemTitle") %></label></td>
            <td>
                <asp:TextBox ID="tbTitle" runat="server"></asp:TextBox>
				<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
					ControlToValidate="tbTitle" ErrorMessage="*"></asp:RequiredFieldValidator>
			</td>
        </tr>
        <tr>
            <td><label><% = Resources.Resource.ResourceManager.GetString("Category") %></label></td>
            <td>
                <DirectoryControl:CascadingCategory runat="server" ID="ccCategories" /> 
                </td>
        </tr>        
        <tr>
            <td><label><% = Resources.Resource.ResourceManager.GetString("ItemLinkUrl") %></label></td>
            <td>
                <asp:TextBox ID="tbLinkUrl" runat="server" Width="300"></asp:TextBox>
                <span class="notes">请尽可能确保链接的有效性</span>
				<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
					ControlToValidate="tbLinkUrl" ErrorMessage="*"></asp:RequiredFieldValidator>
			</td>
        </tr>
        <tr>
            <td><label>描述该网站：</label></td>
            <td>
                <asp:TextBox ID="tbDescription" runat="server" TextMode="MultiLine" 
					Height="69px" Width="450px"></asp:TextBox>
				<span class="notes">网站的信息，性质，请尽量用简短的语言</span>
			</td>
        </tr>
        <tr>
        	<td colspan="2">
			<center>
				<asp:Button ID="btnRecommend" runat="server" onclick="btnRecommend_Click" Text="提 交" />
				<asp:Literal ID="ltMsg" runat="server"></asp:Literal>
			</center>
			</td>
        </tr>
    </table>
</asp:Content>
